package smlab.graphics
{
	/**
	 * 用HSB表示一个颜色
	 * @author Sean
	 * 
	 */	
	public class HSB_SM
	{
		/**
		* HUE (0-360)
		*/		
		public var h:Number = 0;
		/**
		* SATURATION (0-100)
		*/		
		public var s:Number = 0;
		/**
		* BRIGHTNESS (0-100)
		*/		
		public var b:Number = 0;
		
		/**
		 * 构造一个HSB 颜色
		 * @param hue HUE (0-360)
		 * @param saturation SATURATION (0-100)
		 * @param brightness BRIGHTNESS (0-100)
		 * @return 
		 * 
		 */		
		public function HSB_SM(hue:Number = 0 , saturation:Number = 0 , brightness :Number = 0){
			this.h = hue;
			this.s = saturation;
			this.b = brightness;
		}
		
		public function toString():String{
			return [h,s,b].toString();
		}
	}
}